To rename a domain controller
This command will update the service principal name (SPN) attributes in Active Directory for this computer account and register DNS resource records for the new computer name. The SPN value of the computer account must be replicated to all domain controllers for the domain and the DNS resource records for the new computer name must be distributed to all the authoritative DNS servers for the domain name. If the updates and registrations have not occurred prior to removing the old computer name, then some clients may be unable to locate this computer using the new or old name.
Value | Description |
---|---|
CurrentComputerName | The current, or primary, computer name or IP address of the computer you are renaming. |
NewComputerName | The new name for the computer. The NewComputerName must be a fully qualified domain name (FQDN). The primary DNS suffix specified in the FQDN for NewComputerName must be the same as the primary DNS suffix of CurrentComputerName or it must be contained in the list of allowed DNS suffixes specified in the msDS-AllowedDNSSuffixes attribute of the domainDns object. |
OldComputerName | The old name of renamed computer. |
Important
Notes
netdom computername ComputerName /enumerate:{AlternateNames | PrimaryName | AllNames}